package rocketmq.domain;


import lombok.Data;
import lombok.NoArgsConstructor;
import rocketmq.utils.IdUtils;

/**
 * @author mercury
 */
@Data
@NoArgsConstructor
public class RocketMqMessage {

    /**
     * 消息Id
     */
    protected String id = IdUtils.randomUUID();

    /**
     * 消息内容
     */
    protected Object data;

    public RocketMqMessage(Object data) {
        this.data = data;
    }
}
